<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-theme.min.css">
    <title>Bootstrap表单案例(下)</title>
</head>

<body>
    <form role="form">
        <div class="form-group has-warning has-feedback">
            <label>用户名</label>
            <input type="text" class="form-control">
            <span class="glyphicon glyphicon-ok form-control-feedback"></span>
        </div>
        <div class="form-group has-success">
            <label>用户名</label>
            <input type="text" class="form-control">
        </div>
        <div class="form-group has-error">
            <label>用户名</label>
            <input type="text" class="form-control">
        </div>
    </form>
</body>

</html>